module.exports = {
  // 自定义路由
  router: {
    extendRoutes(routes, resolve) {
      // 清空nuxt根据目录生成的路由表
      routes.slice(0)

      routes.push(...[
        {
          path: '/',
          component: resolve(__dirname, 'page/layout/'),
          children: [
            {
              path: '',
              name: 'home',
              component: resolve(__dirname, 'page/home/')
            }
          ]
        }
      ])
    }
  }
}
